package com.umeox.moto.mqtt;

import android.text.TextUtils;

import com.umeox.moto.mqtt.base.PersistentInitParams;


public class MqttInitParams extends PersistentInitParams {
    public String deviceName;
    public String deviceSecret;
    public boolean receiveOfflineMsg = false;

    public MqttInitParams(String deviceName, String deviceSecret) {
        this.deviceName = deviceName;
        this.deviceSecret = deviceSecret;
    }

    public boolean checkValid() {
        return !TextUtils.isEmpty(this.deviceName);
    }
}